let baseUrl = "";
const href = window.location.href;
const n1 = /http(s)?:\/\/(dev.channel)\.(xiaocaoku.cn)/;
const n2 = /http(s)?:\/\/(channel)\.(xiaocaoku.cn)/;
if (href.match(n1) !== null) {
  baseUrl = "https://dev.xiaocaoku.cn";
} else if (href.match(n2) !== null) {
  baseUrl = "https://www.xiaocaoku.cn";
} else {
  baseUrl = "https://dev.xiaocaoku.cn";
}
export const baseURL = process.env.NODE_ENV == "production" ? baseUrl : "/api";
